# -*- coding: utf-8; mode: snippet -*-
# name: defun for advice
# key: advice-defun
# contributor: Shuguang Sun
# --
(defun my-$1-ad (${3:&rest _args})
  $0)

(advice-add '${1:orig-fun} :${2:$$(yas-choose-value '("before" "after" "override" "around"
    "before-while" "before-until" "after-while" "after-until"
    "filter-args" "filter-reture"))} #'my-$1-ad)$0
